package com.wframe.project.jnd.services;

import com.frame.database.JdataBean;
import com.wframe.project.jnd.entity.Payment;
import com.wframe.project.jnd.rest.util.ClientException;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

/**
 * Created by Administrator on 2017/5/12.
 */
public interface PayService {

    Payment generateOrder(Payment payment);

    Payment getOrderByCode(String payCode);

    Payment paymentRefund(Payment payment);

    List<JdataBean> getNotPayList();

    /**
     * 查询支付订单状态
     */
    Object findAttribute(String columnName, String key, Object value);

    /**
     * 修改支付订单状态
     *
     * @param columnMap
     * @param keyMap
     */
    void update(Map columnMap, Map keyMap);

    BigDecimal getBigDecimalAmout(String sn) throws ClientException;

    Payment getOrder(Map keyMap);

    void updateSubmitted(String sn);
}
